
int LED = D1;

int LED1 = D2;
//void setup()
//{ Serial.begin(9600);
//  pinMode(LED, OUTPUT);		//IO输出
//}
//
//void loop() {
//  for (int i = 0; i < 1024; i++) {
//    analogWrite(LED, i);
//    Serial.println(i);
//delay(10);
//  }
//  for (int j = 1024; j > 0; j--) {
//    analogWrite(LED, j);
//    Serial.println(j);
//delay(10);
//  }
//}


void setup()
{ Serial.begin(9600);
  pinMode(LED, OUTPUT);    //IO输出
}

void loop() {
  analogWrite(LED, 1023);
  delay(500);
  analogWrite(LED, 0);
  delay(500);
  analogWrite(LED1, 1023);
  delay(500);
  analogWrite(LED1, 0);
  delay(500);
}
